<?php
namespace app\common\validate;

use think\Validate;

class DivinationNote extends Validate
{
    protected $rule = [
        'content'   => 'require|max:300',
        'uid'  => 'require|number',
        'did'  => 'require|number',
    ];

    protected $message = [
        'content.require'   => '请输入内容！',
        'content.max' => '字数超出限制！',
        'uid.require'   => '用户不存在1！',
        'uid.number'   => '用户不存在2',
        'did.require'   => '提问不存在',
        'did.number'   => '提问不存在',
    ];

}